package jmine.tec.rpc.common.provider;

/**
 * Bean contendo informações acerca de um serviço.
 * 
 * @author lundberg
 * @param <S> tipo de serviço
 */
public class ServiceInfo<S> {

    private Class<S> service;

    private String prefix;

    /**
     * Construtor
     */
    public ServiceInfo() {
    }

    /**
     * Construtor
     * 
     * @param service service
     * @param prefix prefix
     */
    public ServiceInfo(Class<S> service, String prefix) {
        this.service = service;
        this.prefix = prefix;
    }

    /**
     * @return the service
     */
    public Class<S> getService() {
        return this.service;
    }

    /**
     * @return the prefix
     */
    public String getPrefix() {
        return this.prefix;
    }

    /**
     * @param service the service to set
     */
    public void setService(Class<S> service) {
        this.service = service;
    }

    /**
     * @param prefix the prefix to set
     */
    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}
